package com.finger.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.finger.common.utils.PageUtils;
import com.finger.gulimall.ware.entity.PurchaseEntity;
import com.finger.gulimall.ware.entity.vo.DoneVO;
import com.finger.gulimall.ware.entity.vo.MargeVO;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author finger
 * @email 909128695@qq.com
 * @date 2022-03-16 18:27:01
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取未分配的购物单
     *
     * @return
     */
    PageUtils unreceiveList();

    /**
     * 合并采购需求
     *
     * @param margeVO
     */
    void margePurchase(MargeVO margeVO);

    /**
     * 领取采购单
     *
     * @param ids 采购单id集合
     */
    void receivedPurchase(List<Long> ids);

    /**
     * 完成购物单
     *
     * @param doneVo 前端传过来的购物单vo
     */
    void done(DoneVO doneVo);
}

